package com.njym.java.security.app.biz;

import com.github.pagehelper.PageHelper;
import com.njym.java.security.app.entity.Lecturer;
import com.njym.java.security.app.entity.SupportBussiness;
import com.njym.java.security.app.mapper.LecturerMapper;
import com.njym.java.security.app.mapper.SupportBussinessMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2020-01-10 14:11:59
 */
@Service
public class SupportBussinessBiz extends BaseBiz<SupportBussinessMapper,SupportBussiness> {
    @Resource
    private SupportBussinessMapper supportBussinessMapper;

    public List<SupportBussiness> queryList(String province, String name, String pname, Integer page, Integer limit){
        PageHelper.startPage(page,limit);
        return supportBussinessMapper.queryList(province, name, pname);
    }
    public int insertBussiness(SupportBussiness entity) {
        return mapper.insertBussiness(entity);
    }
}